﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Abp.Organizations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.Card
{
    /// <summary>
    /// 卡片管理
    /// </summary>
    public class Card : Entity, IHasCreationTime, IMustHaveOrganizationUnit
    {
        public const int MaxTitleLength = 256;
        public const int MaxDescriptionLength = 64 * 1024;//64kb
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 当前负责人所在的OU
        /// </summary>
        public long OrganizationUnitId { get; set; }

        [MaxLength(MaxDescriptionLength)]
        public string Remark { get; set; }

        public string UCCID { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }


        /// <summary>
        /// 代理商
        /// </summary>
        public string AgentCode { get; set; }

        /// <summary>
        /// 套餐
        /// </summary>
        public string Package { get; set; }

        /// <summary>
        /// 剩余流量
        /// </summary>
        public double Balance { get; set; }

        /// <summary>
        /// 充值比例
        /// </summary>
        public double Proportion { get; set; }

        /// <summary>
        /// 失效时间
        /// </summary>
        public DateTime Invalid_time { get; set; }

        /// <summary>
        /// 绑定电话号
        /// </summary>
        public string BindTel { get; set; }

        /// <summary>
        /// 绑定时间
        /// </summary>
        public DateTime BindTime { get; set; }

        /// <summary>
        /// 绑定用户名
        /// </summary>
        public string BindName { get; set; }

        /// <summary>
        /// 绑定用户身份证
        /// </summary>
        public string BindIdCard { get; set; }

        public string OwnerId { get; set; }
    }
}
